package com.lzw.breezeNovel.model.entity.pojo.novel;

import com.lzw.breezeNovel.model.entity.pojo.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.model.entity
 * @date 2025/3/2
 * @description 小说评分的实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Rating extends BaseEntity {

    @Schema(description = "评分id")
    private Long ratingId;

    @Schema(description = "小说id")
    private Long bookId;

    @Schema(description = "评分")
    private BigDecimal score;

    @Schema(description = "评分用户id")
    private Long userId;

    @Schema(description = "评分时间")
    private Date ratingTime;

}
